* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  color: #fff;
  background: #040e27;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  line-height: 1.5;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.btn {
  cursor: pointer;
  display: inline-block;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  background: #040e27;
  padding: 12px 30px;
  color: #fff;
  transition: all 0.5s ease 0s;
}

.btn-img {
  margin-top: 20px;
  padding: 8px 30px;
  color: #fff;
  background: #0181f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-img img {
  height: 40px;
  width: 40px;
  margin-right: 10px;
}

.btn:hover {
  transform: scale(0.98);
  opacity: 0.9;
  color: #f4f4f4;
}

.container {
  margin: 0 auto;
  padding: 0 40px;
  max-width: 1100px;
}

.main-nav * {
  margin: 0;
}

.main-nav {
  background: #040e27;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px 0;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav .title {
  font-size: 30px;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-nav li {
  font-size: 17px;
  margin: 10px 15px;
}

.main-nav a {
  color: #fff;
}

.main-nav a:hover {
  color: #0181f5;
}

.showcase {
  position: relative;
  height: 600px;
  background: url('showcase-bg.png') no-repeat center bottom;
  z-index: 0;
}

.showcase::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 14, 39, 0.8);
  z-index: -1;
}

.showcase .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.showcase h1 {
  font-size: 40px;
  letter-spacing: 3px;
  line-height: 1.7;
  font-weight: 400;
}

.showcase h2 {
  font-size: 30px;
  color: #0181f5;
  margin-bottom: 22px;
  font-size: 20px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 2px;
}

.projects > div {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.projects img {
  width: 100%;
  height: 100%;
}

.projects > div:hover .content {
  opacity: 0.9;
}

.projects .content {
  position: absolute;
  background: #0181f5;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease-in;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.projects h4 {
  margin: 0;
}

@media (max-width: 960px) {
  .showcase h1 {
    font-size: 30px;
  }
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .showcase h1 {
    font-size: 20px;
  }
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .projects {
    grid-template-columns: repeat(1, 1fr);
  }
}
